package com.elink.enginerring.file.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.elink.enginerring.file.entity.Tag;

public interface TagMapper {
	int deleteByPrimaryKey(Integer tagId);

	int insert(Tag record);

	int insertSelective(Tag record);

	Tag selectByPrimaryKey(Integer tagId);

	int updateByPrimaryKeySelective(Tag record);

	int updateByPrimaryKey(Tag record);

	List<Tag> getList();

	@Delete(" delete from tag where  find_in_set(tag_id,#{ids} )")
	void del(@Param("ids") String ids);

	List<Tag> getTagList(@Param("tagIds")String tagIds);

	void order(@Param("id")String id, @Param("seq")String seq);
	
	int getMaxSeq();
	
	int getMaxId();

	Long  insertBatch(@Param("list")List<Tag> tagList);
}